/**
 * MsgService.java 
 * Copyright © 2015-3015, 杭州泊享网络科技有限公司
 * 
 * @author Liu Tao
 * @create 2015年2月16日
 */
package com.pshare.artemis.appauth.service;

import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pshare.artemis.appauth.bean.AppAuth;
import com.pshare.artemis.appauth.mapper.AppAuthMapper;
import com.pshare.framework.mapper.BaseMapper;
import com.pshare.framework.service.BaseService;

/**
 * 消息业务层
 */
@Service
public class AppAuthService extends BaseService<Long, AppAuth> {
	
	private static final Logger logger = Logger.getLogger(AppAuthService.class);

	@Autowired
	private AppAuthMapper appAuthMapper;
	
	@Override
	protected BaseMapper<Long, AppAuth> getBaseMapper() {
		return appAuthMapper;
	}
	
	public AppAuth getAppAuth(String appId) {
		if (StringUtils.isBlank(appId)) {
			logger.error("appId is blank");
			return null;
		}
		
		return appAuthMapper.getAppAuth(appId);
	}

	
}
